home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Visual Basic 5.0 (2nd Edition) / Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso / Source / WinTlb / README.TXT < prev    next >
Text File  |  1997-06-09  |  2KB  |  44 lines

  1. This is the share for the Windows API Type Library. Two versions are
  2. available:
  3.  
  4. win.tlb       VB5 ANSI version
  5. winu.tlb      VB5 Unicode version
  6.  
  7. The source builds either or both using the MKWIN batch file. It is
  8. possible to set up the project so that you can build under the
  9. Microsoft C++ environment. I had this working under Microsoft Visual
  10. C++, version 4.2, but did not get around to converting it to the
  11. current version 5.0. Microsoft Developer's Studio.
  12.  
  13. The source files must be built with MIDL, the Interface Description
  14. Language compiler. Unfortunately, this compiler is not provided with
  15. Visual Basic, which instead supplies the old MKTYPLIB compiler for the
  16. Object Description Language (ODL). These two languages are similar,
  17. but not compatible. I use many techniques that are incompatible with
  18. ODL. You'll need to get a copy of a recent MIDL compiler from Visual
  19. C++ or MSDN to build this source.
  20.  
  21. I could write several long articles about type library techniques,
  22. discovered mostly by trial and error. An article on ODL is provided
  23. elsewhere on this CD, but does not cover many of the IDL techniques
  24. used in the current library source. You'll have to discover these
  25. tricks by studying the source.
  26.  
  27. I created the type library by inserting C include files, commenting
  28. them out, and then commenting in completed definitions as I wrote
  29. them. As you can imagine, this makes a messy source file. Large
  30. portions of the source are commented out--just waiting for your
  31. enhancements.
  32.  
  33. The library source is provided for your information only. You may
  34. enhance it for your own use, but please don't redistribute modified
  35. source or type libraries. Instead, send your enhancements to
  36. brucem@pobox.com. I will integrate changes and make them available to
  37. readers. I don't want many slightly different and possibly
  38. incompatible versions floating around.
  39.  
  40. The TestTlb and TestTlbU Visual Basic projects on the disk illustrate
  41. a few type library techniques related to Unicode and ANSI versions.
  42.  
  43. Bruce McKinney
  44.